package com.gitee.ywj1352.web;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.lang.annotation.*;

/**
 * @author wenjie.yang on 2019/7/16.
 */

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Service
@Transactional
public @interface TransactionService {

    @AliasFor(annotation = Service.class,attribute = "value")
    String name() default "";


    @AliasFor(annotation = Transactional.class,attribute = "value")
    String txName();

}
